
**** BenchmarkSampleSelection
 

use "Temp/Master_5yr.dta" , clear
 drop if year<1900

 
 
  eststo clear 

 
 ***Variation  in sample composition
 
 
 
 
eststo m1: reghdfe dtax_non_trade_real       libdem_extra_vdem    l1.gov_change l1.civ_war_all_PRIO  l1.int_war_all_PRIO	 P_ind_total_f_realshare  S_g5_unw_alliance_abs   cr_market_accessXBOEinv X_* l1.drought_affected_merged if expansion ==0, absorb(year iso_n) cluster(  iso_n)
estimates store m1 // balanced sample only (iso != "ETH" & iso != "LBR" & iso != "SOM" & iso != "DJI" & iso != "LBY")
 
 
eststo m2: reghdfe dtax_non_trade_real       libdem_extra_vdem    l1.gov_change l1.civ_war_all_PRIO  l1.int_war_all_PRIO	 P_ind_total_f_realshare  S_g5_unw_alliance_abs   cr_market_accessXBOEinv X_* l1.drought_affected_merged if iso !=  "MAR" & iso != "DZA" & iso != "TUN" & iso != "LBY" & iso != "EGY", absorb(year iso_n) cluster(  iso_n)
estimates store m2 // Sub-Saharan Africa only
 
 
eststo m3: reghdfe dtax_non_trade_real       libdem_extra_vdem    l1.gov_change l1.civ_war_all_PRIO  l1.int_war_all_PRIO	 P_ind_total_f_realshare  S_g5_unw_alliance_abs   cr_market_accessXBOEinv X_* l1.drought_affected_merged if iso != "ETH" & iso != "LBR", absorb(year iso_n) cluster(  iso_n)
estimates store m3 // excluding independent
 
 
eststo m4: reghdfe dtax_non_trade_real       libdem_extra_vdem    l1.gov_change l1.civ_war_all_PRIO  l1.int_war_all_PRIO	 P_ind_total_f_realshare  S_g5_unw_alliance_abs   cr_market_accessXBOEinv X_* l1.drought_affected_merged if socialist_mean <=0.4, absorb(year iso_n) cluster(  iso_n)
estimates store m4 // excluding socialist obs
 
 
eststo m5: reghdfe dtax_non_trade_real       libdem_extra_vdem    l1.gov_change l1.civ_war_all_PRIO  l1.int_war_all_PRIO	 P_ind_total_f_realshare  S_g5_unw_alliance_abs   cr_market_accessXBOEinv X_* l1.drought_affected_merged if inflation_ep_mean <=0.4 , absorb(year iso_n) cluster(  iso_n)
estimates store m5 // excluding high inflation
 
 
eststo m6: reghdfe dtax_non_trade_real       libdem_extra_vdem    l1.gov_change l1.civ_war_all_PRIO  l1.int_war_all_PRIO	 P_ind_total_f_realshare  S_g5_unw_alliance_abs   cr_market_accessXBOEinv X_* l1.drought_affected_merged if  l1_civ_war_all_PRIO != 1, absorb(year iso_n) cluster(  iso_n)
estimates store m6 // excluding civil conflict obs
 
 
eststo m7: reghdfe dtax_non_trade_real       libdem_extra_vdem    l1.gov_change l1.civ_war_all_PRIO  l1.int_war_all_PRIO	 P_ind_total_f_realshare  S_g5_unw_alliance_abs   cr_market_accessXBOEinv X_* l1.drought_affected_merged if disaster_affected < 0.1, absorb(year iso_n) cluster(  iso_n)
estimates store m7 // excluding natural disaster obs (> 100,000 population affected)
 
 
eststo m8: reghdfe dtax_non_trade_real       libdem_extra_vdem    l1.gov_change l1.civ_war_all_PRIO  l1.int_war_all_PRIO	 P_ind_total_f_realshare  S_g5_unw_alliance_abs   cr_market_accessXBOEinv X_* l1.drought_affected_merged if drought_affected_merged < 1, absorb(year iso_n) cluster(  iso_n)
estimates store m8 // excluding drought obs (> 1,000,000 population affected)




 
 

esttab m1 m2 m3 m4 m5 m6 m7 m8   using "Output/Tables/Appendix/APP_TAB_5_2.rtf", replace style(tex) cells(b(star fmt(2)) se(par fmt(2))) stats(r2_a N F, fmt(%9.2f %9.0g)) legend label varlabels(_cons constant) starlevels(* 0.1 ** 0.05 *** 0.01)
esttab m1 m2 m3 m4 m5 m6 m7 m8   using "Output/Tables/Appendix/APP_TAB_5_2.tex", replace style(tex) cells(b(star fmt(2)) se(par fmt(2))) stats(r2_a N , fmt(%9.2f %9.0g)) legend label varlabels(_cons constant) starlevels(* 0.1 ** 0.05 *** 0.01)
